{extend name="base/base-goods-layout"/}

{block name="breadcrumb"}
<a>商家管理中心</a>
<a>商品</a>
<a>待售商品管理</a>
{/block}

{block name="main"}
<div class="search-wrap">
    <form action="" class="layui-form">
        <ul>
            <li>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="goodsname" required lay-verify="required"
                               placeholder="请输入商品名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </li>
            <li>
                <div class="layui-form-item">
                    <label class="layui-form-label">平台货号：</label>
                    <div class="layui-input-block">
                        <input type="text" name="goodsno" required lay-verify="required"
                               placeholder="请输入收货人姓名" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </li>
            <li>
                <div class="layui-btn-container">
                    <button class="layui-btn layui-bg-red" lay-submit><i class="layui-icon">&#xe615;</i>查询
                    </button>
                </div>
            </li>
        </ul>
    </form>
</div>
<div class="goodlist">
    <div class="menu-bar">
        <ul>
            <li {eq name="op" value="" } class="active" {/eq}><a href="{:think\\Url::build('waitsell')}">仓库中的商品</a></li>
            <li {eq name="op" value="illegal" } class="active" {/eq}><a href="{:think\\Url::build('waitsell','op=illegal')}">违规的商品</a></li>
            <li {eq name="op" value="verify" } class="active" {/eq}><a href="{:think\\Url::build('waitsell','op=verify')}">待审核的商品</a></li>
        </ul>
    </div>

    {if $op== ''}
    <div id="section1">
        <div class="table-wrap">
            <form class="layui-form" lay-verType="alert" method="post">
                <table class="table-list-style" width="100%" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <th class="tl">
                            <label class="checkbox"><input lay-filter="checkall" lay-ignore=""
                                                           class="checkall" type="checkbox"></label>商品名称
                        </th>
                        <th width="130">价格</th>
                        <th width="120">库存</th>
                        <!--<th width="80">发布时间</th>-->
                        <th width="120">操作</th>
                    </tr>

                    <tr>
                        <td class="tl th" colspan="99">
                            <label class="checkbox">
                                <input lay-ignore="" class="checkitem" name="chk[]" value="331"
                                       type="checkbox">
                            </label>
                            <span>平台货号：15161762888</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl">
                            <dl class="fn-clear">
                                <dt>
                                    <i date-type="ajax_goods_list" data-id="331"
                                       class="iconfont icon-haibijiahao"></i>
                                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                                        <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399658.jpg_60X60.jpg">
                                    </a>
                                </dt>
                                <dd>
                                    <h3>
                                        <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">【两罐装】保税区发货
                                            港版美赞臣 Meadjohson 4段奶粉 900g （3-6岁宝宝）</a>
                                    </h3>
                                    <p>母婴商品 -&gt; 奶粉品牌 -&gt; 美赞臣 Meadjohson</p>
                                </dd>
                            </dl>
                        </td>
                        <td>309.00 元</td>
                        <td>20 件</td>
                        <td>
                            <span class="edit">
                                <a href="{:think\\Url::build('waitsell','op=edit')}"><i
                                        class="iconfont icon-bianji"></i>编辑</a>
                            </span>
                            <span class="del">
                                 <a lay-submit data-param="{'id':'331','m':'goods','s':'online'}" href="javascript:void(0)"><i
                                         class="iconfont icon-shanchu"></i>删除</a>
                             </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl th" colspan="99">
                            <label class="checkbox">
                                <input lay-ignore="" class="checkitem" name="chk[]" value="331"
                                       type="checkbox">
                            </label>
                            <span>平台货号：15161762888</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl">
                            <dl class="fn-clear">
                                <dt>
                                    <i date-type="ajax_goods_list" data-id="331"
                                       class="iconfont icon-haibijiahao"></i>
                                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                                        <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399658.jpg_60X60.jpg">
                                    </a>
                                </dt>
                                <dd>
                                    <h3>
                                        <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">【两罐装】保税区发货
                                            港版美赞臣 Meadjohson 4段奶粉 900g （3-6岁宝宝）</a>
                                    </h3>
                                    <p>母婴商品 -&gt; 奶粉品牌 -&gt; 美赞臣 Meadjohson</p>
                                </dd>
                            </dl>
                        </td>
                        <td>309.00 元</td>
                        <td>20 件</td>
                        <td>
                            <span class="edit">
                                <a href="{:think\\Url::build('waitsell','op=edit')}"><i
                                        class="iconfont icon-bianji"></i>编辑</a>
                            </span>
                            <span class="del">
                                 <a lay-submit data-param="{'id':'331','m':'goods','s':'online'}" href="javascript:void(0)"><i
                                         class="iconfont icon-shanchu"></i>删除</a>
                             </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl th" colspan="99">
                            <label class="checkbox">
                                <input lay-ignore="" class="checkitem" name="chk[]" value="331"
                                       type="checkbox">
                            </label>
                            <span>平台货号：15161762888</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl">
                            <dl class="fn-clear">
                                <dt>
                                    <i date-type="ajax_goods_list" data-id="331"
                                       class="iconfont icon-haibijiahao"></i>
                                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                                        <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399658.jpg_60X60.jpg">
                                    </a>
                                </dt>
                                <dd>
                                    <h3>
                                        <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">【两罐装】保税区发货
                                            港版美赞臣 Meadjohson 4段奶粉 900g （3-6岁宝宝）</a>
                                    </h3>
                                    <p>母婴商品 -&gt; 奶粉品牌 -&gt; 美赞臣 Meadjohson</p>
                                </dd>
                            </dl>
                        </td>
                        <td>309.00 元</td>
                        <td>20 件</td>
                        <td>
                            <span class="edit">
                                <a href="{:think\\Url::build('waitsell','op=edit')}"><i
                                        class="iconfont icon-bianji"></i>编辑</a>
                            </span>
                            <span class="del">
                                 <a lay-submit data-param="{'id':'331','m':'goods','s':'online'}" href="javascript:void(0)"><i
                                         class="iconfont icon-shanchu"></i>删除</a>
                             </span>
                        </td>
                    </tr>

                    <tr>
                        <td class="toolBar" colspan="1">
                            <input name="act" value="del" type="hidden">
                            <label class="checkbox"><input lay-ignore="" lay-filter="checkall"
                                                           class="checkall" type="checkbox">全选</label>
                            <span>|</span>
                            <label lay-submit class="del"><i class="iconfont icon-shanchu"></i>删除</label>
                            <span>|</span>
                            <label lay-submit class="grounding"><i class="layui-icon">&#xe62f;</i>上架</label>
                        </td>
                        <td colspan="99">
                            <div class="page">
                                <b>1</b>
                                <a href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">2</a>
                                <a href="?firstRow=20&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">3</a>
                                <a href="?firstRow=30&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">4</a>
                                <a href="?firstRow=40&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">5</a>
                                <a href="?firstRow=50&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">6</a>
                                <a href="?firstRow=60&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">7</a>
                                <a href="?firstRow=70&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">8</a>
                                <a href="?firstRow=80&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">9</a>
                                <a href="?firstRow=90&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">10</a>
                                <a href="?firstRow=210&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">..22</a>
                                <a class="nextPage"
                                   href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">下一页</a>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    {elseif $op == 'illegal'/}
    <div id="section2">
        <div class="table-wrap">
            <form class="layui-form" lay-verType="alert" method="post">
                <table class="table-list-style" width="100%" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <th class="tl">
                            <label class="checkbox"><input lay-filter="checkall" lay-ignore=""
                                                           class="checkall" type="checkbox"></label>商品名称
                        </th>
                        <th width="80">违规禁售原因</th>
                        <th width="80">价格</th>
                        <th width="80">库存</th>
                        <th width="120">操作</th>
                    </tr>

                    <tr>
                        <td class="tl th" colspan="99">
                            <label class="checkbox">
                                <input lay-ignore="" class="checkitem" name="chk[]" value="331"
                                       type="checkbox">
                            </label>
                            <span>平台货号：15161762888</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl">
                            <dl class="fn-clear">
                                <dt>
                                    <i date-type="ajax_goods_list" data-id="331"
                                       class="iconfont icon-haibijiahao"></i>
                                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                                        <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399658.jpg_60X60.jpg">
                                    </a>
                                </dt>
                                <dd>
                                    <h3>
                                        <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">【两罐装】保税区发货
                                            港版美赞臣 Meadjohson 4段奶粉 900g （3-6岁宝宝）</a>
                                    </h3>
                                    <p>母婴商品 -&gt; 奶粉品牌 -&gt; 美赞臣 Meadjohson</p>
                                </dd>
                            </dl>
                        </td>
                        <td><p class="ban">违禁品</p></td>
                        <td>309.00 元</td>
                        <td>20 件</td>
                        <td>
                                            <span class="edit">
                                                <a href="{:think\\Url::build('waitsell','op=edit')}"><i
                                                        class="iconfont icon-bianji"></i>编辑</a>
                                            </span>
                            <span class="del">
                                                 <a lay-submit data-param="{'id':'331','m':'goods','s':'online'}" href="javascript:void(0)"><i
                                                         class="iconfont icon-shanchu"></i>删除</a>
                                             </span>
                        </td>
                    </tr>

                    <tr>
                        <td class="toolBar" colspan="1">
                            <input name="act" value="del" type="hidden">
                            <label class="checkbox"><input lay-ignore="" lay-filter="checkall"
                                                           class="checkall" type="checkbox">全选</label>
                            <span>|</span>
                            <label lay-submit class="del"><i class="iconfont icon-shanchu"></i>删除</label>
                        </td>
                        <td colspan="99">
                            <div class="page">
                                <b>1</b>
                                <a href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">2</a>
                                <a href="?firstRow=20&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">3</a>
                                <a href="?firstRow=30&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">4</a>
                                <a href="?firstRow=40&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">5</a>
                                <a href="?firstRow=50&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">6</a>
                                <a href="?firstRow=60&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">7</a>
                                <a href="?firstRow=70&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">8</a>
                                <a href="?firstRow=80&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">9</a>
                                <a href="?firstRow=90&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">10</a>
                                <a href="?firstRow=210&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">..22</a>
                                <a class="nextPage"
                                   href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">下一页</a>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    {elseif $op == 'verify'/}
    <div id="section3">
        <div class="table-wrap">
            <form class="layui-form" lay-verType="alert" method="post">
                <table class="table-list-style" width="100%" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <th class="tl">
                            <label class="checkbox"><input lay-filter="checkall" lay-ignore=""
                                                           class="checkall" type="checkbox"></label>商品名称
                        </th>
                        <th width="80">审核</th>
                        <th width="80">价格</th>
                        <th width="80">库存</th>
                        <th width="120">操作</th>
                    </tr>

                    <tr>
                        <td class="tl th" colspan="99">
                            <label class="checkbox">
                                <input lay-ignore="" class="checkitem" name="chk[]" value="331"
                                       type="checkbox">
                            </label>
                            <span>平台货号：15161762888</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tl">
                            <dl class="fn-clear">
                                <dt>
                                    <i date-type="ajax_goods_list" data-id="331"
                                       class="iconfont icon-haibijiahao"></i>
                                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                                        <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399658.jpg_60X60.jpg">
                                    </a>
                                </dt>
                                <dd>
                                    <h3>
                                        <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">【两罐装】保税区发货
                                            港版美赞臣 Meadjohson 4段奶粉 900g （3-6岁宝宝）</a>
                                    </h3>
                                    <p>母婴商品 -&gt; 奶粉品牌 -&gt; 美赞臣 Meadjohson</p>
                                </dd>
                            </dl>
                        </td>
                        <td><p class="ban">未审核</p></td>
                        <td>309.00 元</td>
                        <td>20 件</td>
                        <td>
                                            <span class="edit">
                                                <a href="{:think\\Url::build('waitsell','op=edit')}"><i
                                                        class="iconfont icon-bianji"></i>编辑</a>
                                            </span>
                            <span class="del">
                                                 <a lay-submit data-param="{'id':'331','m':'goods','s':'online'}" href="javascript:void(0)"><i
                                                         class="iconfont icon-shanchu"></i>删除</a>
                                             </span>
                        </td>
                    </tr>

                    <tr>
                        <td class="toolBar" colspan="1">
                            <input name="act" value="del" type="hidden">
                            <label class="checkbox"><input lay-ignore="" lay-filter="checkall"
                                                           class="checkall" type="checkbox">全选</label>
                            <span>|</span>
                            <label lay-submit class="del"><i class="iconfont icon-shanchu"></i>删除</label>
                        </td>
                        <td colspan="99">
                            <div class="page">
                                <b>1</b>
                                <a href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">2</a>
                                <a href="?firstRow=20&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">3</a>
                                <a href="?firstRow=30&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">4</a>
                                <a href="?firstRow=40&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">5</a>
                                <a href="?firstRow=50&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">6</a>
                                <a href="?firstRow=60&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">7</a>
                                <a href="?firstRow=70&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">8</a>
                                <a href="?firstRow=80&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">9</a>
                                <a href="?firstRow=90&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">10</a>
                                <a href="?firstRow=210&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">..22</a>
                                <a class="nextPage"
                                   href="?firstRow=10&amp;totalRows=217&amp;m=goods&amp;s=online&amp;key=">下一页</a>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    {/if}
</div>
{/block}

{block name="botScript"}
<script type="text/html" id="big-img">
    <tr class="tr-goods-list">
        <td colspan="5" class="tl">
            <ul class="fn-clear">
                <li>
                    <div class="goods-image">
                        <a herf="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">
                            <img src="http://www.jiushouguoji.hk/uploadfile/goods/8/2016/07/13/1468399679.jpg_100X100.jpg"
                                 width="100">
                        </a>
                    </div>
                    <div class="goods-price">价格：<span>309.00 元</span></div>
                    <div class="goods-stock">库存：<span>20 件</span></div>
                    <a href="index.php?m=goods&amp;s=detail&amp;id=505" target="_blank">查看商品详情</a>
                </li>
            </ul>
        </td>
    </tr>
</script>
{/block}
